import path from 'path';
import fs from 'fs';
import { app } from 'electron';

export const readConfig = () => {
    const configPath = path.join(app.getAppPath(), 'src/config/config.json');
    console.log(configPath);
    const configData = fs.readFileSync(configPath, 'utf-8');
    return JSON.parse(configData);
}